#include "Location.h"
#include <iostream>
using namespace std;

Location::Location(){
        X = 0;
        Y = 0;
        cout<<"无参构造函数"<<endl;  
}

Location::Location(int xx, int yy){
        X = xx;
        Y = yy;
        cout<<"有参构造函数"<<endl;  
}

Location::Location(const Location &object){
        X = object.X;
        Y = object.Y;
        cout<<"赋值(拷贝)构造函数"<<endl;
}

Location::~Location(){
        cout<<"析够函数"<<endl;
}

int Location::getX(){
        return X;
}

int Location::getY(){
        return Y;
}
